// 引入axios实例
import http from '@/utils/http'

// 1、加入购物车接口
export const insertCartAPI = ({ skuId,count})=> {
  return http({
    url: '/member/cart',
    method:'POST',
    data:{
        skuId,
        count
    }
  })
}

// 2、获取购物车列表接口
export const findNewCartListAPI = ()=> {
    return http({
      url: '/member/cart',
    })
  }

// 3、删除购物车商品
export const delCartAPI = (ids)=> {
    return http({
      url: '/member/cart',
      method:'DELETE',
      data:{
        ids
      }
    })
  }